<template>
  <el-radio-group v-model="radioChoose" @change="change">
    <el-radio :label="3">
      <img src="../../assets/img/zfb1.png" class="size">
      <span>支付宝</span>
    </el-radio>
    <br>
    <el-radio :label="6">
      <img src="../../assets/img/wx1.png" class="size">
      <span>微信支付</span>
    </el-radio>
    <br>
    <el-radio :label="9">
      <img src="../../assets/img/cj1.png" class="size">
      <span>快捷网银</span>
    </el-radio>
  </el-radio-group>
</template>

<script>
export default {
  name: 'PayChannel',
  props: { value: Number },
  data() {
    return {
      radioChoose: this.value
    }
  },
  watch: {
    value(val) {
      this.radioChoose = val
    }
  },
  methods: {
    change(val) {
      this.$emit('input', val)
    }
  }
}
</script>

<style scoped>
  .size{
    width: 40px;
    height: 30px
  }
</style>
